<!-- 用户数据按月份展示组件 -->
<template name='goods_record'>
	<!-- 客户历史购买记录表格区 -->
	<view class="pagesbox show-order-lishi">
		

			<!-- 标题栏 -->
			<view class="right-top-box" v-if="isXiaoShou">
				<view @click="sp_record.tab.index=0,fun_goods_record()" 
				:class="sp_record.tab.index==0 ?'select':''" 
				class="info justify center">综合</view>
				
				<view @click="sp_record.tab.index=1,fun_goods_record()" 
				:class="sp_record.tab.index==1 ?'select':''" 
				class="info justify center">销售</view>
				
				<view @click="sp_record.tab.index=5,fun_goods_record()" 
				:class="sp_record.tab.index==5 ?'select':''" 
				class="info justify center">进货</view>
				
				<view @click="sp_record.tab.index=3,fun_goods_record()" 
				:class="sp_record.tab.index==3 ?'select':''" 
				class="info justify center">退好</view>
				
				<view @click="sp_record.tab.index=2,fun_goods_record()" 
				:class="sp_record.tab.index==2 ?'select':''" 
				class="info justify center">退坏</view>
				
				
				<view @click="sp_record.tab.index=4,fun_goods_record()" 
				:class="sp_record.tab.index==4 ?'select':''" 
				class="info justify center">赠送</view>
				
				<view @click="sp_record.tab.index=9,fun_goods_record()" 
				:class="sp_record.tab.index==9 ?'select':''" 
				class="info justify center">盘点</view>
				
				<view @click="sp_record.tab.index=11,fun_goods_record()" 
				:class="sp_record.tab.index==11 ?'select':''" 
				class="info justify center">价格</view>
				
				
				<view @click="sp_record.tab.index=16,fun_goods_record()" 
				:class="sp_record.tab.index==16 ?'select':''" 
				class="info justify center">调拨</view>
				
				<img class="alter_sure "  @click="goodsRecordClose" 
				 src="@../../static/img/delete-1.png" 
				 v-if="showSearchClose"
				 >
			</view>

			<!-- 历史购买 -->
			<view  class=" wh" :style="{height:isPagesOpen==true?'calc(100% - 40px)':''}">
				<view class="topH font12  " >
					<view class="boxsss100" >
						<!-- 增加、删除 -->
						<view class="top-but" >
							<user_select  @onclickSelectUser="selectUser" @onclickRouteSelect="onclickRouteSelect"></user_select>
							<view class="searchBox floatleft" style="flex:1">
								<view class="riskTitle">搜索内容:</view>
								<input class="search-ipu" 
								v-model="searchGoods" 
								placeholder="输入欲要查询商品的内容 备注 ID"
								@confirm="fun_goods_record(true)"/>
								<view class="delete-ipu" v-if="searchGoods!=''" @click="searchGoods='',fun_goods_record(true)">
								</view>
							</view>
							<button @click="$common.noMultipleClicks('fun_goods_record',fun_goods_record,true)"
							class="rightButttom" 
							>
								<img src="../../static/img/search.png" class="ico"></img>
								刷新
							</button>
							
						</view>
						<!-- 综合 -->
						<table v-if="sp_record.tab.index==0">
							<!-- 表头 -->
							<thead>
								<tr >
									<th  class="centers " style="min-width: 20px;">
										序
									</th>
									<th  class=" ">
										时间
									</th>
									<th  class=" ">
										商品
									</th>
									<th  class="centers ">
										数量
									</th>
									<th  class="centers ">
										备注
									</th>
									<th  class="centers ">
										类型
									</th>
									<th  class="centers ">
										客户
									</th>
									<th  class="centers ">
										操作者
									</th>
								</tr>
							</thead>
							
							<tbody>
								<!-- 内容 -->
								<tr v-for="(item,index) in sp_record.my_record.resData.list" 
								:key="index" 
								@click="TabcheckedIndex = index,$common.GetOrder(item.order_id,false,2)"
								:class="TabcheckedIndex == index ? 'goods-list-select':''"
								:style="item.type ==9 ? 'color: #5a9500;':''"
								class=""
								>
									
									<td  class="centers  font12 relative">
										<view class="orderType" v-if="item.orderType!=2">草稿</view>
										{{index+1}} 
									</td>
									<td  class="  font12" :title="item.time_info">
										{{item.time}}
									</td>
									
									<td  class="  font12">
										{{item.goods_name}}
									</td>
									<td  class="centers  font12">
										{{item.counts}}
									</td>
									<td  class="centers  font12">
										<view class=" flex">
											<view class="riskTitle">{{item.goods.account}}：</view>
											<view class="justify">{{item.descr}}</view>
										</view>
									</td>
									<td  class="centers  font12">
										{{item.orderStatusName+'-'+item.orderTypeName}}
									</td>
									<td  class="centers  ">
										{{item.user_name}}
									</td>
									<td  class="centers ">
										{{item.uid_name}}
									</td>
								</tr>
							</tbody>
						</table>
						
						<!-- 销售 -->
						<table v-if="sp_record.tab.index==1" >
							<!-- 表头 -->
							<thead>
								<tr >
									<th  class="centers " style="min-width: 20px;">
										序
									</th>
									<th  class=" ">
										时间
									</th>
									<th  class=" ">
										商品
									</th>
								
									<th  class="centers ">
										数量
									</th>
									<th class="centers ">
										单价
									</th>
									<th class="centers ">
										合计
									</th>
									<th  class=" ">
										备注
									</th>
									<th  class="centers ">
										客户
									</th>
									<th  class="centers ">
										操作者
									</th>
								</tr>
							</thead>
							<tbody>
								<!-- 内容 -->
								<tr v-for="(item,index) in sp_record.my_record.resData.list" 
								:key="index" 
								@click="TabcheckedIndex = index,$common.GetOrder(item.order_id,false,2)"
								:class="TabcheckedIndex == index ? 'goods-list-select':''"
								:style="item.type ==9 ? 'color: #5a9500;':''"
								class=""
								>
									
									<td  class="centers  font12 relative">
										<view class="orderType" v-if="item.orderType!=2">草稿</view>
										{{index+1}} 
									</td>
									<td  class="  font12" :title="item.time_info">
										{{item.time}}
									</td>
									
									<td  class="  font12">
										{{item.goods_name}}
									</td>
									<td  class="centers  font12">
										{{item.counts}}
									</td>
									<td class="centers ">
										{{item.money}}
									</td>
									<td :class="item.sum_money>0 ? 'bab100':'ff2626'"
									class="centers ">
										{{item.sum_money}}
									</td>
									<td  class="centers  font12">
										<view class=" flex">
											<view class="riskTitle">{{item.goods.account}}：</view>
											<view class="justify">{{item.descr}}</view>
										</view>
									</td>
									<td  class="centers  ">
										{{item.user_name}}
									</td>
									<td  class="centers ">
										{{item.uid_name}}
									</td>
								</tr>
							</tbody>
						</table>
						
						<!-- 进货 -->
						<table v-if="sp_record.tab.index==5" >
							<!-- 表头 -->
							<thead>
								<tr >
									<th  class="centers " style="min-width: 20px;">
										序
									</th>
									<th  class=" ">
										时间
									</th>
									<th  class=" ">
										商品
									</th>
								
									<th  class="centers ">
										数量
									</th>
									<th  class="centers ">
										裸价
									</th>
									<th class="centers ">
										进价
									</th>
									<th class="centers ">
										批价
									</th>
									<th class="centers ">
										合计
									</th>
									<th  class=" ">
										备注
									</th>
									<th  class="centers ">
										客户
									</th>
									<th  class="centers ">
										操作者
									</th>
								</tr>
							</thead>
							<tbody>
								<!-- 内容 -->
								<tr v-for="(item,index) in sp_record.my_record.resData.list" 
								:key="index" 
								@click="TabcheckedIndex = index,$common.GetOrder(item.order_id,false,2)"
								:class="TabcheckedIndex == index ? 'goods-list-select':''"
								:style="item.type ==9 ? 'color: #5a9500;':''"
								class=""
								>
									
									<td  class="centers  font12 relative">
										<view class="orderType" v-if="item.orderType!=2">草稿</view>
										{{index+1}} 
									</td>
									<td  class="  font12" :title="item.time_info">
										{{item.time}}
									</td>
									
									<td  class="  font12">
										{{item.goods_name}}
									</td>
									<td  class="centers  font12">
										{{item.counts}}
									</td>
									<td class="centers  ">
										{{item.bare_money}}
									</td>
									<td class="centers ">
										{{item.money}}
									</td>
									<td class="centers  ">
										{{item.pifajia}}
									</td>
									<td :class="item.sum_money>0 ? 'bab100':'ff2626'"
									class="centers ">
										{{item.sum_money}}
									</td>
									<td  class="centers  font12">
										<view class=" flex">
											<view class="riskTitle">{{item.goods.account}}：</view>
											<view class="justify">{{item.descr}}</view>
										</view>
									</td>
									<td  class="centers  ">
										{{item.user_name}}
									</td>
									<td  class="centers ">
										{{item.uid_name}}
									</td>
								</tr>
							</tbody>
						</table>
						<!-- 退好 -->
						<table v-if="sp_record.tab.index==3" >
							<!-- 表头 -->
							<thead>
								<tr >
									<th  class="centers " style="min-width: 20px;">
										序
									</th>
									<th  class=" ">
										时间
									</th>
									<th  class=" ">
										商品
									</th>
									<th  class="centers ">
										数量
									</th>
									<th class="centers ">
										单价
									</th>
									<th class="centers ">
										合计
									</th>
									<th  class=" ">
										备注
									</th>
									<th  class="centers ">
										客户
									</th>
									<th  class="centers ">
										操作者
									</th>
								</tr>
							</thead>
							<tbody>
								<!-- 内容 -->
								<tr v-for="(item,index) in sp_record.my_record.resData.list" 
								:key="index" 
								@click="TabcheckedIndex = index,$common.GetOrder(item.order_id,false,2)"
								:class="TabcheckedIndex == index ? 'goods-list-select':''"
								:style="item.type ==9 ? 'color: #5a9500;':''"
								class=""
								>
									
									<td  class="centers  font12 relative">
										<view class="orderType" v-if="item.orderType!=2">草稿</view>
										{{index+1}} 
									</td>
									<td  class="  font12" :title="item.time_info">
										{{item.time}}
									</td>
									
									<td  class="  font12">
										{{item.goods_name}}
									</td>
									<td  class="centers  font12">
										{{item.counts}}
									</td>
									<td class="centers ">
										{{item.money}}
									</td>
									<td :class="item.sum_money>0 ? 'bab100':'ff2626'"
									class="centers ">
										{{item.sum_money}}
									</td>
									<td  class="centers  font12">
										<view class=" flex">
											<view class="riskTitle">{{item.goods.account}}：</view>
											<view class="justify">{{item.descr}}</view>
										</view>
									</td>
									<td  class="centers  ">
										{{item.user_name}}
									</td>
									<td  class="centers ">
										{{item.uid_name}}
									</td>
								</tr>
							</tbody>
						</table>
						<!-- 忒坏 -->
						<table v-if="sp_record.tab.index==2" >
							<!-- 表头 -->
							<thead>
								<tr >
									<th  class="centers " style="min-width: 20px;">
										序
									</th>
									<th  class=" ">
										时间
									</th>
									<th  class=" ">
										商品
									</th>
								
									<th  class="centers ">
										数量
									</th>
									<th class="centers ">
										单价
									</th>
									<th class="centers ">
										合计
									</th>
									<th  class=" ">
										备注
									</th>
									<th  class="centers ">
										客户
									</th>
									<th  class="centers ">
										操作者
									</th>
								</tr>
							</thead>
							<tbody>
								<!-- 内容 -->
								<tr v-for="(item,index) in sp_record.my_record.resData.list" 
								:key="index" 
								@click="TabcheckedIndex = index,$common.GetOrder(item.order_id,false,2)"
								:class="TabcheckedIndex == index ? 'goods-list-select':''"
								:style="item.type ==9 ? 'color: #5a9500;':''"
								class=""
								>
									
									<td  class="centers  font12 relative">
										<view class="orderType" v-if="item.orderType!=2">草稿</view>
										{{index+1}} 
									</td>
									<td  class="  font12" :title="item.time_info">
										{{item.time}}
									</td>
									
									<td  class="  font12">
										{{item.goods_name}}
									</td>
									<td  class="centers  font12">
										{{item.counts}}
									</td>
									<td class="centers ">
										{{item.money}}
									</td>
									<td :class="item.sum_money>0 ? 'bab100':'ff2626'"
									class="centers ">
										{{item.sum_money}}
									</td>
									<td  class="centers  font12">
										<view class=" flex">
											<view class="riskTitle">{{item.goods.account}}：</view>
											<view class="justify">{{item.descr}}</view>
										</view>
									</td>
									<td  class="centers  ">
										{{item.user_name}}
									</td>
									<td  class="centers ">
										{{item.uid_name}}
									</td>
								</tr>
							</tbody>
						</table>
						<!-- 赠送 -->
						<table v-if="sp_record.tab.index==4" >
							<!-- 表头 -->
							<thead>
								<tr >
									<th  class="centers " style="min-width: 20px;">
										序
									</th>
									<th  class=" ">
										时间
									</th>
									<th  class=" ">
										商品
									</th>
								
									<th  class="centers ">
										数量
									</th>
									<th class="centers ">
										单价
									</th>
									<th class="centers ">
										合计
									</th>
									<th  class=" ">
										备注
									</th>
									<th  class="centers ">
										客户
									</th>
									<th  class="centers ">
										操作者
									</th>
								</tr>
							</thead>
							<tbody>
								<!-- 内容 -->
								<tr v-for="(item,index) in sp_record.my_record.resData.list" 
								:key="index" 
								@click="TabcheckedIndex = index,$common.GetOrder(item.order_id,false,2)"
								:class="TabcheckedIndex == index ? 'goods-list-select':''"
								:style="item.type ==9 ? 'color: #5a9500;':''"
								class=""
								>
									
									<td  class="centers  font12 relative">
										<view class="orderType" v-if="item.orderType!=2">草稿</view>
										{{index+1}} 
									</td>
									<td  class="  font12" :title="item.time_info">
										{{item.time}}
									</td>
									
									<td  class="  font12">
										{{item.goods_name}}
									</td>
									<td  class="centers  font12">
										{{item.counts}}
									</td>
									<td class="centers ">
										{{item.money}}
									</td>
									<td :class="item.sum_money>0 ? 'bab100':'ff2626'"
									class="centers ">
										{{item.sum_money}}
									</td>
									<td  class="centers  font12">
										<view class=" flex">
											<view class="riskTitle">{{item.goods.account}}：</view>
											<view class="justify">{{item.descr}}</view>
										</view>
									</td>
									<td  class="centers  ">
										{{item.user_name}}
									</td>
									<td  class="centers ">
										{{item.uid_name}}
									</td>
								</tr>
							</tbody>
						</table>
						<!-- 盘点 -->
						<table v-if="sp_record.tab.index==9" >
							<!-- 表头 -->
							<thead>
								<tr >
									<th  class="centers " style="min-width: 20px;">
										序
									</th>
									<th  class=" ">
										时间
									</th>
									<th  class=" ">
										商品
									</th>
								
									<th  class="centers ">
										盘点前数量
									</th>
									<th class="centers ">
										盘点后数量
									</th>
									<th class="centers ">
										库存差异
									</th>
									
									<th  class=" ">
										备注
									</th>
									<th  class="centers ">
										客户
									</th>
									<th  class="centers ">
										操作者
									</th>
								</tr>
							</thead>
							<tbody>
								<!-- 内容 -->
								<tr v-for="(item,index) in sp_record.my_record.resData.list" 
								:key="index" 
								@click="TabcheckedIndex = index,$common.GetOrder(item.order_id,false,2)"
								:class="TabcheckedIndex == index ? 'goods-list-select':''"
								:style="item.type ==9 ? 'color: #5a9500;':''"
								class=""
								>
									
									<td  class="centers  font12 relative">
										<view class="orderType" v-if="item.orderType!=2">草稿</view>
										{{index+1}} 
									</td>
									<td  class="  font12" :title="item.time_info">
										{{item.time}}
									</td>
									
									<td  class="  font12">
										{{item.goods_name}}
									</td>
									<td  class="centers  font12">
										{{item.bare_money*100}}
									</td>
									<td class="centers ">
										{{item.counts}}
									</td>
									<td class="centers  ">
										{{item.counts - (item.bare_money*100)}}
									</td>
									
									<td  class="centers  font12">
										<view class=" flex">
											<view class="riskTitle">{{item.goods.account}}：</view>
											<view class="justify">{{item.descr}}</view>
										</view>
									</td>
									<td  class="centers  ">
										{{item.user_name}}
									</td>
									<td  class="centers ">
										{{item.uid_name}}
									</td>
								</tr>
							</tbody>
						</table>
						<!-- 价格 -->
						<table v-if="sp_record.tab.index==11" >
							<!-- 表头 -->
							<thead>
								<tr >
									<th  class="centers " style="min-width: 20px;">
										序
									</th>
									<th  class=" ">
										时间
									</th>
									<th  class=" ">
										商品
									</th>
									<th class="centers ">
										修改前批价
									</th>
									<th class="centers ">
										修改后批价
									</th>
									<th  class=" ">
										备注
									</th>
									<th  class="centers ">
										客户
									</th>
									<th  class="centers ">
										操作者
									</th>
								</tr>
							</thead>
							<tbody>
								<!-- 内容 -->
								<tr v-for="(item,index) in sp_record.my_record.resData.list" 
								:key="index" 
								@click="TabcheckedIndex = index,$common.GetOrder(item.order_id,false,2)"
								:class="TabcheckedIndex == index ? 'goods-list-select':''"
								:style="item.type ==9 ? 'color: #5a9500;':''"
								class=""
								>
									
									<td  class="centers  font12 relative">
										<view class="orderType" v-if="item.orderType!=2">草稿</view>
										{{index+1}} 
									</td>
									<td  class="  font12" :title="item.time_info">
										{{item.time}}
									</td>
									
									<td  class="  font12">
										{{item.goods_name}}
									</td>
									<td class="centers ">
										{{item.money}}
									</td>
									<td :class="item.sum_money>0 ? 'bab100':'ff2626'"
									class="centers ">
										{{item.sum_money}}
									</td>
									<td  class="centers  font12">
										<view class=" flex">
											<view class="riskTitle">{{item.goods.account}}：</view>
											<view class="justify">{{item.descr}}</view>
										</view>
									</td>
									<td  class="centers  ">
										{{item.user_name}}
									</td>
									<td  class="centers ">
										{{item.uid_name}}
									</td>
								</tr>
							</tbody>
						</table>
						
						
						<!-- 调拨 -->
						<table v-if="sp_record.tab.index==16" >
							<!-- 表头 -->
							<thead>
								<tr >
									<th  class="centers " style="min-width: 20px;">
										序
									</th>
									<th  class=" ">
										时间
									</th>
									<th  class=" ">
										商品
									</th>
									<th class="centers ">
										数量
									</th>
									<th class="centers ">
										价格
									</th>
									<th  class="centers ">
										合计
									</th>
									<th  class=" ">
										备注
									</th>
									<th  class="centers ">
										类型
									</th>
									<th  class="centers ">
										客户
									</th>
									<th  class="centers ">
										操作者
									</th>
								</tr>
							</thead>
							<tbody>
								<!-- 内容 -->
								<tr v-for="(item,index) in sp_record.my_record.resData.list" 
								:key="index" 
								@click="TabcheckedIndex = index,$common.GetOrder(item.order_id,false,2)"
								:class="TabcheckedIndex == index ? 'goods-list-select':''"
								:style="item.type ==9 ? 'color: #5a9500;':''"
								class=""
								>
									
									<td  class="centers  font12 relative">
										<view class="orderType" v-if="item.orderType!=2">草稿</view>
										{{index+1}} 
									</td>
									<td  class="  font12" :title="item.time_info">
										{{item.time}}
									</td>
									
									<td  class="  font12">
										{{item.goods_name}}
									</td>
									<td class="centers ">
										{{item.counts}}
									</td>
									<td class="centers ">
										{{item.money}}
									</td>
									<td class="centers ">
										{{item.sum_money}}
									</td>
									<td  class="centers  font12">
										<view class=" flex">
											<view class="riskTitle">{{item.goods.account}}：</view>
											<view class="justify">{{item.descr}}</view>
										</view>
									</td>
									<td class="centers ">
										{{item.orderStatusName}}
									</td>
									<td  class="centers  ">
										{{item.user_name}}
									</td>
									<td  class="centers ">
										{{item.uid_name}}
									</td>
								</tr>
							</tbody>
						</table>
						
						<!-- 暂无数据 -->
						<empty v-if="sp_record.my_record.resData.list && sp_record.my_record.resData.list.length==0"></empty>
						<!-- end -->
					</view>
					
					
					<!-- end -->
					<pages 
					:sum="page.sum"
					:current="page.nowPage"
					@updatePage="UpdatePage"
					></pages>
				</view>
			</view>
			
	
	</view>

</template>

<script>

	import empty from "@/components/admin-components/empty.vue"
	import pages from "@/components/admin-components/pages.vue"
	import user_select from "@/components/user/select.vue"
	export default{
		name:'goods_record',
		components: {
			empty,
			pages,
			user_select,
		},
	
		data(){
			return{
				OnPageSearchValue:'',//搜索的内容
				PrintOrderData:{},//传递进详细单据页面的数据
				TabcheckedIndex:-1,//当前选中项
				sp_record:{//商品销售记录
					tab:{
						index:0,
					},
					my_record:{
						resData:{},
						checked:0,
					},
				},
				page:{
					
					nowPage:1,//当前页数
					pageCount:1,//总页数
					maxCount:0,
					sum:0,
					pageCounts:15,
				},
				searchUserIds:'',//搜索指定用户的记录
				searchRouteIds:'',//搜索指定线路的记录
				searchGoods:'',//搜索指定商品相关的记录
			}
		},
		 // 此处定义传入的数据
		props: {
			isPagesOpen:{
				type:Boolean,
				default :false
			},
			/**
			 * 其他页面传递进来直接搜寻的，不是菜单打开的,商品ID
			*/
			OnPageSearch: {
				type:String,
				default :''
			},
			searchUserId:{//搜索指定用户
				type: String,
				default: ''
			},
			showSearchClose:{//是否显示关闭按钮
				type: Boolean,
				default: false
			},
			isXiaoShou:{//是否只显示标题栏
				type: Boolean,
				default: true
			},
			showGongYing:{//是否搜索供应商
				type: Boolean,
				default: false
			},
			showDiaoBo:{//是否搜索供应商
				type: Boolean,
				default: false
			},
		},
		watch: {
			OnPageSearch(newVal, oldVal) {
				this.OnPageSearchValue = newVal
				this.TabcheckedIndex   = 1
				this.fun_goods_record()
			},
		},
		created() {
			var that = this
			this.sp_record.tab.index = this.showGongYing==true? 5 : (this.showDiaoBo== true ? 16: 1)
			
			this.OnPageSearchValue = this.OnPageSearch
			if(this.OnPageSearch.length>0){
				that.fun_goods_record()
				return
			}
			//只显示销售数据
			if(this.isXiaoShou==true && this.searchUserId.length>0){
				//this.sp_record.tab.index = 1
				this.fun_goods_record()
				return
			}

		},
		beforeDestroy(){
			uni.$off('goodsRecord')//移除事件监视器
		},
		methods:{
			/**
			 * 用户选中的回调
			*/
			selectUser(item){
				
				if(item!=null){
					this.searchUserIds = item.id
				}else{
					//有可能是清空了。
					this.searchUserIds = ''
				}
				this.fun_goods_record(true)
			},
			/**
			 * 线路选中的回调
			*/
			onclickRouteSelect(route_id){
				if(route_id.length>0){
					this.searchRouteIds = route_id
				}else{
					//有可能是清空了。
					this.searchRouteIds = ''
				}
				this.fun_goods_record(true)
			},
			/**
			 * 分页器回调
			*/
			UpdatePage(pageName,pageCount){
				var that = this
				that.page.nowPage = pageName
				that.page.pageCounts = pageCount
				that.fun_goods_record(false)
			},
			goodsRecordClose(){
				this.$emit('goodsRecordClose', 'close')
			},
			/**
			 * 单品历史-读取搜索
			*/
			fun_goods_record(isUpdatePage=true,ReqExport=0){
				var that = this
				that.sp_record.my_record.resData = {}
				that.page.nowPage = isUpdatePage == true ? 1:that.page.nowPage;
				if(that.OnPageSearchValue<=0){return}
				that.$common.get_request(
					{
						type:'goods_record',
						types:that.sp_record.tab.index,
						goods_id:that.OnPageSearchValue,
						pages:that.page.nowPage,//当前位于页数
						page_count:that.page.pageCounts,//当前请求页的数量
						user_id:that.searchUserIds.length<=0 ? that.searchUserId:that.searchUserIds,//搜索指定用户
						route_id:that.searchRouteIds.length<=0 ? '':that.searchRouteIds,//搜索指定线路
						search:that.searchGoods,//包含但不限于商品 备注 ID
						
					},
					(res)=>{
						that.sp_record.my_record.resData = res
						
						
						
						that.page.sum  = res.sum
						if(isUpdatePage == true){
						that.page.nowPage  = 1
						}
						
					}
				);
			},
		}
	}
</script>

<style>
	.pagesbox{
		background-color: #fff;
		z-index:6;
	}
	.orderType{
		padding: 0px 1px;
		background-color: #df002a;
		color: #fff;
		font-size: 12px;
		position: absolute;
		/* left: 10px; */
		line-height: normal;
		/* right: 5px; */
		font-size: 10px;
		left: 0px;
		top: 0px;
		border-top-right-radius: 3px;
		border-bottom-right-radius: 3px;
		font-weight: 100;
	}
</style>
